package permission

import (
	"net/http"

	"private-domain-overseas-service/admin/business/api/internal/logic/permission"
	"private-domain-overseas-service/admin/business/api/internal/svc"
	"private-domain-overseas-service/pkg/result"
)

// AdminUserInfoHandler - 获取用户信息
func AdminUserInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := permission.NewAdminUserInfoLogic(r.Context(), svcCtx)
		resp, err := l.AdminUserInfo()

		result.HttpResult(r, w, resp, err)
	}
}
